load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")

go_library(
    name = "bazel_test_precompiled_lib",
    srcs = ["bazel_test_precompiled.go"],
    importpath = "go.skia.org/skia/infra/bots/task_drivers/bazel_test_precompiled",
    visibility = ["//visibility:private"],
    deps = [
        "//bazel/device_specific_configs",
        "//infra/bots/task_drivers/common",
        "@com_google_cloud_go_storage//:storage",
        "@org_golang_google_api//option",
        "@org_skia_go_infra//go/auth",
        "@org_skia_go_infra//go/exec",
        "@org_skia_go_infra//go/gcs",
        "@org_skia_go_infra//go/gcs/gcsclient",
        "@org_skia_go_infra//go/skerr",
        "@org_skia_go_infra//task_driver/go/lib/auth_steps",
        "@org_skia_go_infra//task_driver/go/lib/os_steps",
        "@org_skia_go_infra//task_driver/go/td",
    ],
)

go_binary(
    name = "bazel_test_precompiled",
    embed = [":bazel_test_precompiled_lib"],
    visibility = ["//visibility:public"],
)

go_test(
    name = "bazel_test_precompiled_test",
    srcs = ["bazel_test_precompiled_test.go"],
    embed = [":bazel_test_precompiled_lib"],
    deps = [
        "//infra/bots/task_drivers/common",
        "//infra/bots/task_drivers/testutils",
        "@com_github_stretchr_testify//assert",
        "@com_github_stretchr_testify//require",
        "@org_skia_go_infra//go/exec",
        "@org_skia_go_infra//go/exec/testutils",
        "@org_skia_go_infra//go/gcs",
        "@org_skia_go_infra//go/gcs/mocks",
        "@org_skia_go_infra//go/now",
        "@org_skia_go_infra//go/testutils",
        "@org_skia_go_infra//task_driver/go/lib/os_steps",
        "@org_skia_go_infra//task_driver/go/td",
    ],
)
